//---------------------------------------------------------------------------

#ifndef CLocationH
#define CLocationH
//---------------------------------------------------------------------------
#include "CKiloutouClient.h"
#include "CKiloutouMachine.h"
#include "systdate.h"
//---------------------------------------------------------------------------
#define nMateriel(a)        dmKiloutou->tMateriel##a->AsInteger
#define asMateriel(a)       dmKiloutou->tMateriel##a->AsString

#define nLocation(a)        dmKiloutou->tLocation##a->AsInteger
#define dtLocation(a)       dmKiloutou->tLocation##a->AsDateTime

#define asDsetLocation(a)   dmKiloutou->dsetLocation##a->AsString
#define asClient(a)         dmKiloutou->tClient##a->AsString

//---------------------------------------------------------------------------
class CLocation
{
    private:
        CKiloutouClient     * m_Client;
        CKiloutouMachine    * m_Machine;
        bool                  m_bObjectRendu;
        TDateTime             m_Time;
    public:
        /*
        int ID_Location;
        __fastcall CLocation( CKiloutouClient * Client, CKiloutouMachine * Machine);
        bool __fastcall AjouterListe( TStrings * MaLocation, bool Affichage);
        bool __fastcall Rendre( void );
        */
        __fastcall CLocation( void );
        void __fastcall Ajouter( void );
        void __fastcall Rendre( void );
        void __fastcall EffacerTable( void );

    private:
        AnsiString __fastcall GetLibelle( void );

    public:
       __property AnsiString  __fastcall Libelle = { read=GetLibelle };
       __property bool        __fastcall bObjectRendu = { read=m_bObjectRendu, write=m_bObjectRendu};

        
};
//---------------------------------------------------------------------------
#endif


